package com.qiyu.jvm.gc.cms;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author linhao
 * @Date created in 11:14 上午 2021/2/4
 */
public class CmsConfigDemo {


    public List<String> findUser() {
        List<String> stringList = new ArrayList<>();
        for (int i = 0; i < 1000; i++) {
            stringList.add(new String(i + ""));
        }
        return stringList;
    }

    public static void main(String[] args) {
        CmsConfigDemo cmsConfigDemo = new CmsConfigDemo();
        while (true) {
            List<String> userList = cmsConfigDemo.findUser();
            int size = userList.size();
//            try {
//                Thread.sleep(10);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
        }
    }
}
